<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no" />
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
        html, body {
            background-color: #f8f8f8;
        }
        .main ul li:nth-child(2) .li_box {
        	height: 65px;
        	line-height: 65px;
        }
        .main ul li:last-child .li_box {
        	border-bottom: none;
        }
        .li_box {
        	height: 50px;
        	line-height: 50px;
			display: -webkit-box;
			display: -webkit-flex;
			padding: 0 15px;
			background-color: #fff;
			border-bottom: 1px solid #e8e8e8;
        }
        .li_box .li_boxl {
        	color: #333;
        	font-size: 15px;
        }
        .li_box .li_boxr {
        	width: 0;
        	flex: 1;
        	-webkit-flex: 1;
        	box-flex: 1;
        	-webkit-box-flex: 1;
        	font-size: 12px;
        	color: #999;
        	display: -webkit-box;
        	-webkit-box-align: center;
        	-webkit-box-pack: end;
        }
        .li_box .li_boxr span {
        	display: block;
        }
        .li_box .li_boxr .right {
        	height: 13px;
        	display: block;
        	padding-left: 10px;
        }
        .li_box .li_boxr .img_icon {
        	height: 35px;
        	display: block;
        }
        .span_div {
        	width: 43px;
        	height: 24px;
        	line-height: 24px;
        	text-align: center;
        	color: #999;
        	font-size: 12px;
        	background-color: #f9f9f9;
        	border-radius: 5px;
        	border: 1px solid #dcdcdc;
        	box-sizing: border-box;
        	margin-left: 10px;
        }
        .span_div.active {
        	background-color: #ffa525;
        	color: #fff;
        }
        .span_div input {
        	display: none;
        }
        .span_s {
        	width: 0;
        	flex: 1;
        	-webkit-flex: 1;
        	box-flex: 1;
        	-webkit-box-flex: 1;
        	overflow: hidden;
        	text-overflow: ellipsis;
        	white-space: nowrap;
        	text-align: right;
        }
    </style>
</head>
<body>
    <div class="main">
    	<ul>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">图片</div>
    				<div class="li_boxr">
    					<img class="img_icon" src="../image/temp/1.png">
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">名称</div>
    				<div class="li_boxr">
    					<span>美味秘制炸鸡</span>
    					<img class="right" src="../image/right.png">
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">介绍</div>
    				<div class="li_boxr">
    					<span class="span_s">外焦里嫩</span>
    					<img class="right" src="../image/right.png">
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">单价</div>
    				<div class="li_boxr">
    					<span>21.00</span>
    					<img class="right" src="../image/right.png">
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">优惠价</div>
    				<div class="li_boxr">
    					<span>请选择</span>
    					<img class="right" src="../image/right.png">
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">当前价格</div>
    				<div class="li_boxr">
    					<div class="span_div active" tapmode onclick="fnRadio(this);"><input type="radio" name="price" checked="true">单价</div>
    					<div class="span_div" tapmode onclick="fnRadio(this);"><input type="radio" name="price">优惠价</div>
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">重量</div>
    				<div class="li_boxr">
    					<span>500 g</span>
    					<img class="right" src="../image/right.png">
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">餐具费</div>
    				<div class="li_boxr">
    					<span>2.00</span>
    					<img class="right" src="../image/right.png">
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">库存</div>
    				<div class="li_boxr">
    					<span>957</span>
    					<img class="right" src="../image/right.png">
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">当前商品状态</div>
    				<div class="li_boxr">
    					<div class="span_div active" tapmode onclick="fnRadio(this);"><input type="radio" name="state" checked="true">上架</div>
    					<div class="span_div" tapmode onclick="fnRadio(this);"><input type="radio" name="state">下架</div>
    				</div>
    			</div>
    		</li>
    		<li>
    			<div class="li_box">
    				<div class="li_boxl">同步至分店</div>
    				<div class="li_boxr">
    					<span>已选择3家分店</span>
    					<img class="right" src="../image/right.png">
    				</div>
    			</div>
    		</li>
    	</ul>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.js"></script>
<script type="text/javascript">
    apiready = function(){
        
    };

    function fnRadio(this_) {
    	$(this_).children('input').prop('checked', true);
    	if ($(this_).children('input').prop('checked')) {
    		$(this_).siblings('.span_div').removeClass('active');
    		$(this_).addClass('active');
    	}
    }
</script>
</html>